<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<br />
<?php if($this->msg):?>
<?=$this->msg?>
<br />
<?php endif;?>
<a href="/bk/level2-add/level1_id/<?=$this->level1_id?>">添加</a>
<br />
<table>
  <tr>
    <th>Banner</th>
    <th>参与人数</th>
    <th>创建时间</th>
    <th>状态</th>
    <th>操作</th>
  </tr>
  <?php if($this->data):?>
  <?php foreach($this->data as $data):?>
  <tr>
    <td><img src="/images/banners/<?=$data['image_url']?>" width="300" /></td>
    <td><?=$data['joined_members']?></td>
    <td><?=$data['ctime']?></td>
    <td><?=($data['status']?"在线":"下线")?></td>
    <td><a href="/bk/level2-edit/level1_id/<?=$this->level1_id?>/id/<?=$data['id']?>">编辑</a>&nbsp;&nbsp;<a href="/bk/level2-refresh/id/<?=$data['id']?>/level1_id/<?=$this->level1_id?>">刷新</a>&nbsp;&nbsp;<a href="/bk/level3/id/<?=$data['id']?>">活动管理</a>&nbsp;&nbsp;<a href="/bk/qr-code/level/2/level_id/<?=$data['id']?>" target="_blank">二维码</a></td>
  </tr>
  <?php endforeach;?>
  <?php endif;?>
</table>
<br /><br />
<div align="right"><?=$this->pagination?></div>